import 'dart:convert';

import 'package:flutter/services.dart';

mixin ChannelMixin {
  Future<String> getDefaultCode() async {
    final channelJSONStr =
        await rootBundle.loadString("assets/account/channel.json");
    final json = jsonDecode(channelJSONStr);
    final code = json["code"];
    return code;
  }
}
